﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using VocabManager.ViewModel;
using Microsoft.Phone.Shell;

namespace VocabManager.View
{
    public partial class AboutView : UserControlBase
    {
 ApplicationBarIconButton _returnMainPageButton;

 public AboutView()
        {
            InitializeComponent();
            _returnMainPageButton = new ApplicationBarIconButton(new Uri(IconUrls.Back, UriKind.Relative));
            _returnMainPageButton.Text = "start";
            _returnMainPageButton.Click += new EventHandler(_returnMainPageButton_Click);

        }

        void _returnMainPageButton_Click(object sender, EventArgs e)
        {
            App.Instance.MainPage.LoadWelcomeView();
        }
        protected override void OnLoad()
        {
            base.OnLoad();
            StoreAppBarButtons();
            ContainerPage.ApplicationBar.Buttons.Clear();
            ContainerPage.ApplicationBar.Buttons.Add(_returnMainPageButton);
        }



    }
}
